fhg2a.relogo
[Groovy] Class UserObserver

java.lang.Object
  fhg2a.ReLogoObserver
      UserObserver

class UserObserver
extends ReLogoObserver

Simulation controller. Sets up the interface and experiment, initiates the simulation and executes every step.


Method Summary
java.lang.Object drawHistogram()

Display population and amount of food available, by displaying population label and three-bar resource histogram.

java.lang.Object drawPatchColour()

Display amount of wild cereal available, by colouring each patch on a false colour spectrum.

java.lang.Object go()

Each epoch, execute activity for all tribes and all food resources on the grid.

java.lang.Object redrawPatches()

Redraw patches based on user-selected drawing method.

java.lang.Object setup()

Initialises grid when user clicks setup button.

 

Method Detail

drawHistogram

java.lang.Object drawHistogram()
Display population and amount of food available, by displaying population label and three-bar resource histogram.


drawPatchColour

java.lang.Object drawPatchColour()
Display amount of wild cereal available, by colouring each patch on a false colour spectrum.


go

@Go
java.lang.Object go()
Each epoch, execute activity for all tribes and all food resources on the grid.


redrawPatches

java.lang.Object redrawPatches()
Redraw patches based on user-selected drawing method.


setup

@Setup
java.lang.Object setup()
Initialises grid when user clicks setup button. Grid is divided into three habitats and populated appropriate amounts of food. Requested number of tribes are scattered randomly across the grid.